#使用递归函数，算阶层

def f(n):
    if n == 1:
        return 1
    else:
        return n*f(n-1)
print(f(5))

# for i in range(2,10):
#     print(i,"阶层=",f(i))